package mode.FactoryMode01;

/**
 * 工厂模式
 *
 */
public class FactoryDemo {
    public static void main(String[] args) {
        AudiFactory factory = new AudiCarFactory();

        AudiQ3 q3=factory.createAudiCar(AudiQ3.class);
        q3.drive();
        q3.selfNavigation();


    }

}
